<!DOCTYPE html>
<html>
<head>
<#include "WEB-INF/view/_frag/meta.ftl">
<#include "WEB-INF/view/_frag/jscss.ftl">
<title>配置权限</title>
</head>
<body>
	<nav class="breadcrumb">
		<i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span>角色管理<span class="c-gray en">&gt;</span> 权限分配 <a class="btn btn-success radius r" style="line-height: 1.6em; margin-top: 3px" href="javascript:location.replace(location.href);" title="刷新"><i class="Hui-iconfont">&#xe68f;</i></a>
	</nav>
	<div class="page-container">
	<form action="${basePath}/role/update_perm" method="post" class="form form-horizontal" id="form-admin-role-add">	
	<input type="hidden" value="${role.role_id}" name="role_perm.role_id">
		<div class="row cl">
			<#list page.permsManager?keys as key> 
			<div class="formControls col-xs-8 col-sm-9">
				<dl class="permission-list">
					<dt>
						<label>
							<!-- <input type="checkbox" value="" name="user-Character-0" id="user-Character-0"> -->
							${key}</label>
					</dt>
					<dd>
						<dl class="cl permission-list2">
							<dd>
							<#list page.permsManager[key] as perm>
							<#if perm.role_id>
								<label class=""><input type="checkbox" value="${perm.perm_id}" checked name="role_perm.perm_id">${perm.perm_name}</label>
							 <#else>
							    <label class=""><input type="checkbox" value="${perm.perm_id}" name="role_perm.perm_id">${perm.perm_name}</label>
							 </#if>	 
							 </#list>
							</dd>
						</dl> 
					</dd>
				</dl>
			</div>
			</#list>
		</div>
		 
		
		<div class="row cl">
			
			<div class="text-r col-xs-2 col-sm-2 col-xs-offset-4 col-sm-offset-4">
					<input class="btn btn-primary radius" type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;" />
			</div>
			<div class="text-l col-xs-2 col-sm-2">
					<input class="btn btn-primary radius" type="button" value="&nbsp;&nbsp;返回&nbsp;&nbsp;" onclick="history.go(-1)" />
			</div>
		</div>
	</form>	 
	</div>

</body>
</html>